<?php
#□■□■□■□■□■□■□■□■□■□■□
#■ 	-    BR COMMAND DISPLAY    - 	 ■
#□ 			-  SPECIAL  -			 □
#■□■□■□■□■□■□■□■□■□■□■
$i = 0;
if($in['Command4'] == "OUKYU"){	#応急処置
	global $inf;
	$log .=  "对伤口进行包扎吧…。<BR>";
	print "包扎哪个部位呢？<BR><BR>";Auto();
	print "<INPUT type=\"radio\" name=\"Command\" value=\"MAIN\" checked>返回</A><BR><BR>";
	if(preg_match("/头/",$inf)){Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"OUK_0\">头</A><BR>";}
	if(preg_match("/腕/",$inf)){Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"OUK_1\">腕</A><BR>";}
	if(preg_match("/腹/",$inf)){Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"OUK_2\">腹部</A><BR>";}
	if(preg_match("/足/",$inf)){Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"OUK_3\">足</A><BR>";}
	if((preg_match("/毒/",$inf))&&($pref['clb'][$in['club']] == "茶道部")){Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"OUK_4\">毒</A><BR>";}
	print "<BR><INPUT type=\"submit\" name=\"Enter\" value=\"决定\">";
} elseif($in['Command4'] == "KOUDOU"){	#基本方針
	$log .=  "考虑下菊爆的基本方针吧…。<BR>";
	print "请决定基本方针。<BR><BR>";
	Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"MAIN\" checked>{$tactics}</A><BR><BR>";
	if($tactics != '通常'){
		Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"KOU_0\">通常</A><BR>";
	}if($tactics != '菊爆攻击型态'){
		Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"KOU_1\">菊爆攻击型态</A><BR>";
	}if($tactics != '捂菊防御型态'){
		Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"KOU_2\">捂菊防御型态</A><BR>";
	}if($tactics != '隐秘尾行型态'){
		Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"KOU_3\">隐秘尾行型态</A><BR>";
	}if($tactics != '偷基摸菊形态'){
		Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"KOU_4\">偷基摸菊形态</A><BR>";
	}
	if($ar >= 7){Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"KOU_5\">连斗行动</A><BR>";}
	print "<BR><INPUT type=\"submit\" name=\"Enter\" value=\"决定\">";
} elseif($in['Command4'] == "OUSEN"){	#応戦方針
	$log .=  "考虑下应战方针吧…。<BR>";
	print "请决定应战方针。<BR><BR>";
	Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"MAIN\" checked>{$ousen}</A><BR><BR>";
	if($ousen != '通常'){
		Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"OUS_0\">通常</A><BR>";
	}if($ousen != '菊爆攻击型态'){
		Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"OUS_1\">菊爆攻击型态</A><BR>";
	}if($ousen != '捂菊防御型态'){
		Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"OUS_2\">捂菊防御型态</A><BR>";
	}if($ousen != '隐秘尾行型态'){
		Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"OUS_3\">隐秘尾行型态</A><BR>";
	}if($ousen != '偷基摸菊型态'){
		#Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"OUS_4\">偷基摸菊型态</A><BR>";
	}if($ousen != '连斗行动'){
		#Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"OUS_5\">连斗行动</A><BR>";
	}if($ousen != '专注治疗'){
		Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"OUS_6\">专注治疗</A><BR>";
	}if($ousen != '逃亡姿态'){
		Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"OUS_7\">逃亡姿态</A><BR>";
	}
	print "<BR><INPUT type=\"submit\" name=\"Enter\" value=\"决定\">";
} elseif($in['Command4'] == "BAITEN"){	#売店
	require $pref['LIB_DIR']."/lib3.php";BAITEN();
} elseif($in['Command4'] == "POISON"){	#毒物混入
	$log .=  "把这个毒药混进去的话…嗬嗬嗬。<BR>";
	print "将毒药混进什么当中呢？<BR><BR>";
Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"MAIN\" checked>返回</A><BR><BR>";
	for ($i=0; $i<5; $i++){
		if(preg_match("/<>SH|<>HH|<>SD|<>HD/",$item[$i])){
			list($itn, $ik) = explode("<>",$item[$i]);
		Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"POI_$i\">$itn/$eff[$i]/$itai[$i]</A><BR>";
		}
	}
	print "<BR><INPUT type=\"submit\" name=\"Enter\" value=\"决定\">";
} elseif($in['Command4'] == "PSCHECK"){	#毒見
	$log .=  "到底有没有混入毒药让我调查一下吧…。<BR>";
Auto();print "发现什么毒物了吗？<BR><BR><INPUT type=\"radio\" name=\"Command\" value=\"MAIN\" checked>返回</A><BR><BR>";
	for ($i=0; $i<5; $i++){
		if(preg_match("/<>SH|<>HH|<>SD|<>HD/",$item[$i])){
			list($itn, $ik) = explode("<>",$item[$i]);
		Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"PSC_$i\">$itn/$eff[$i]/$itai[$i]</A><BR>";
		}
	}
	print "<BR><INPUT type=\"submit\" name=\"Enter\" value=\"决定\">";
} elseif($in['Command4'] == "SPIICH"){ #携帯スピーカ使用
	$log .=  "使用这个的话，大家都能听到流言蜚语的吧…<BR><BR>";
	print "使用大喇叭向全员喊话。";
	print "（全角最多20个字）<BR><BR>";
	print "<INPUT size=\"30\" type=\"text\" name=\"speech\"maxlength=\"50\"><BR><BR>";
Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"SPEAKER\">将爱传给世界</A><BR>";
Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"MAIN\" checked>算了吧</A><BR><BR>";
	print "<INPUT type=\"submit\" name=\"Enter\" value=\"决定\">\n";
} elseif($in['Command4'] == "WINCHG"){	#口癖変更
	$log .=  "更改被菊爆、菊爆他人等情况的口癖。<BR>";
	print "请输入口癖<BR>（全角最多32个字）<BR><BR>";
	print "爆人菊时：<BR><INPUT size=\"30\" type=\"text\" name=\"Message\" maxlength=\"32\" value=\"$msg\"><BR><BR>";
	print "被菊爆时：<BR><INPUT size=\"30\" type=\"text\" name=\"Message2\" maxlength=\"32\" value=\"$dmes\"><BR><BR>";
	print "签　　名：<BR><INPUT size=\"30\" type=\"text\" name=\"Comment\" maxlength=\"32\" value=\"$com\"><BR><BR>";
	print "<INPUT type=\"submit\" name=\"Enter\" value=\"决定\">";
} elseif($in['Command4'] == "TEAM"){	#チーム
	$log .=  "队伍的组成、加入、退出<BR>";
	print "请输入队名<BR>　　 如果想离队<br>　　　　  两个地方都输入『无』。<BR>";
	print "（全角最多12个字）<BR><BR>";
	print "<INPUT size=\"30\" type=\"text\" name=\"teamID2\" maxlength=\"24\" value=\"$teamID\"><BR><BR><BR>";
	print "请输入密码：<BR>（全角最多12个字）<BR><BR>";
	if(($teamID != '')||($teamID != '无')){$in['teamPass2'] = "不变更的情况请保留原样";}else{$in['teamPass2'] = "";}
	print "<INPUT size=\"30\" type=\"text\" name=\"teamPass2\" maxlength=\"24\" value=\"$in[teamPass2]\"><BR><BR>";
	print "<INPUT type=\"submit\" name=\"Enter\" value=\"决定\">";
} elseif($in['Command4'] == "MOB_STS"){	#詳細ステータス
	global $cln,$money_disp;
	$log .=  "详细状况<BR>";
?>
学号：<?=$cln?><br>
队伍：<?=$teamID?><br>
熟练度：殴:<?=$wp?>射:<?=$wg?>斩:<?=$wn?>投:<?=$wc?>爆:<?=$wd?><br>
应战方针：<?=$ousen?><br>
部活：<?=$pref['clb'][$in['club']]?><br>
资金：<?=$money_disp?> 円<br>
<?
Auto();print "<br><INPUT type=\"radio\" name=\"Command\" value=\"MAIN\" checked>返回</A><BR><BR>";
	print "<INPUT type=\"submit\" name=\"Enter\" value=\"决定\">";
} elseif($in['Command4'] == "MOB_A-I"){	#装備・所持品
	global $b_name_h,$b_name_a,$b_name_f,$b_name_i,$item;
	$log .=  "装备·所持品<BR>";
?>
装备;<br>
<br>
种/名/效/耐<br>
头/<?=$b_name_h?>/<?=$bdef_h?>/<?=$btai_h?><br>
腕/<?=$b_name_a?>/<?=$bdef_a?>/<?=$btai_a?><br>
足/<?=$b_name_f?>/<?=$bdef_f?>/<?=$btai_f?><br>
饰/<?=$b_name_i?>/<?=$eff[5]?>/<?=$itai[5]?><br>
<br>
所持品<br>
名/效/数/种<br>
<?
	for ($i=0;$i<5;$i++) {$itemtype = "";
		@list($i_name,$i_kind) = explode("<>",$item[$i]);
		if	(preg_match("/HH|HD/",$i_kind))	{$itemtype = "【生命回复】";}
		elseif	(preg_match("/SH|SD/",$i_kind))	{$itemtype = "【体力回复】";}
		elseif	($i_kind == "TN")	{$itemtype = "【陷阱】";}
		elseif	(preg_match("/W/",$i_kind))	{$itemtype = "【武器：";
			if	(preg_match("/G/",$i_kind))	{$itemtype = ($itemtype . "射");
				if	(preg_match("/S/",$i_kind))	{$itemtype = ($itemtype . "-消音");}
				$itemtype = ($itemtype . ")");}
			if	(preg_match("/K/",$i_kind))	{$itemtype = ($itemtype . "斩");}
			if	(preg_match("/C/",$i_kind))	{$itemtype = ($itemtype . "投");}
			if	(preg_match("/B/",$i_kind))	{$itemtype = ($itemtype . "殴");}
			if	(preg_match("/D/",$i_kind))	{$itemtype = ($itemtype . "爆");}
			$itemtype = ($itemtype . "】");}
		elseif	(preg_match("/D/",$i_kind))	{$itemtype = "【防具：";
			if	(preg_match("/B/",$i_kind))	{$itemtype = ($itemtype . "体");}
			if	(preg_match("/H/",$i_kind))	{$itemtype = ($itemtype . "头");}
			if	(preg_match("/F/",$i_kind))	{$itemtype = ($itemtype . "足");}
			if	(preg_match("/A/",$i_kind))	{$itemtype = ($itemtype . "腕");}
				if	(preg_match("/K/",$i_kind))	{$itemtype = ($itemtype . "-对：斩");}
			$itemtype = ($itemtype . "】");}
		elseif(($i_kind == "R1")||($i_kind == "R2")) {$itemtype = "【雷达】";}
		elseif($i_kind == "Y") {
			if(($i_name == "腐烂的滋味酱")||($i_name == "滋味酱")) {$itemtype = "【滋味酱】";}
			elseif($i_name == "子弹") {$itemtype = "【弹】";}
			else {$itemtype = "【道具】";}}
		elseif($i_kind == "A") {$itemtype = "【装饰品】";}
		elseif($item[$i] == "无") {$itemtype = "【无】";}
		else {$itemtype = "【不明】";}
		if($item[$i]!="无"){
			print "$i_name/$eff[$i]/$itai[$i]/$itemtype<br>";
		}
	}

Auto();print "<br><INPUT type=\"radio\" name=\"Command\" value=\"MAIN\" checked>返回</A><BR><BR>";
	print "<INPUT type=\"submit\" name=\"Enter\" value=\"决定\">";
} else{
	print "到哪里去呢？<BR><BR>";
Auto();print "<INPUT type=\"radio\" name=\"Command\" value=\"MAIN\" checked>返回</A><BR><BR>";
	print "<INPUT type=\"submit\" name=\"Enter\" value=\"决定\">";
}
?>